<%= form_for([:admin, @admin_user]) do |f| %>
  <% if @admin_user.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@admin_user.errors.count, "error") %> prohibited this user from being saved:</h2>

      <ul>
      <% @admin_user.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="group">
    <%= f.label :login, "ユーザー名：", :class => "label" %>
    <br />
    <%= f.text_field :login, :class => "text_field" %>
  </div>

  <br />

  <div class="group">
    <%= f.label :nick_name, "表示名：", :class => "label" %>
    <br />
    <%= f.text_field :nick_name, :class => "text_field" %>
  </div>

  <br />

  <div class="group">
    <%= f.label :password, "パスワード：", :class => "label" %>
    <br />
    <%= f.password_field :password, :class => "password_field" %>
  </div>

  <br />

  <div class="group">
    <%= f.label :password_confirmation, "パスワード確認：", :class => "label" %>
    <br />
    <%= f.password_field :password_confirmation, :class => "password_field" %>
  </div>

  <br />

  <div class="group navform wat-cf">
    <%= f.submit :class => "button", :confirm => "よろしいですか？" %>
  </div>

  <br />

<% end %>
